/**
 * @file SensorTriggerMonitor.h
 * @author  
 * @brief 传感器高频触发检测
 * @version 1.0
 * @date 2021-04-02
 * 
 * @copyright Copyright (c) 2020
 * 
 */

#pragma once

#pragma once

namespace behavior_controller
{
    class SensorTriggerMonitor
    {
        public:
            SensorTriggerMonitor(){};
            bool off_ground_switch_trigger();
            bool bumper_trigger();

            void run();
            double first_time_bumper=0;
            double last_time_bumper=0;
            double first_time=0;
            double last_time=0;
            int count=0;
            int count_bumper=0;

    };
    //static 
    extern SensorTriggerMonitor sensor_trigger_monitor;// 对象
} 


